package com.market.controller.wx;

import com.market.bean.common.BaseRespVo;
import com.market.service.wx.WxGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 * @Description:
 * @since 2023/01/02 21:13
 */
@RestController
@RequestMapping("wx/goods")
public class WxGoodsController {

    @Autowired
    WxGoodsService wxGoodsService;


    @GetMapping("count")
    public BaseRespVo count() {
        long count = wxGoodsService.count();
        return BaseRespVo.ok(count);
    }


}
